# 1. int 类型
# 2. 浮点类型 float

a=10
b=20
c=a+b;
print('%d+%d=%d'%(a,b,c))


af=12.345
bf=76.54321
cf=af+bf;
print('%.2f+%.2f=%.4f'%(af,bf,cf))

# 字符串类型
snum1='1234'
snum2='321'
# 转换成数字类型
mynum1=int(snum1);
mynum2=int(snum2);

mysum = mynum1 + mynum2

print("mysum is %d"%mysum)













